package com.SunSoft.PhoneRemoteControl;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebSettings;
import android.webkit.WebView;
import java.util.Locale;

public class Show_help extends Activity
{
  boolean a = true;
  private dh b;

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903072);
    getIntent().getStringExtra("do_url");
    this.a = Locale.getDefault().getLanguage().toString().equals("zh");
    this.b = new dh(this);
    if (this.b.a("is_rotray").equals("1"))
      setRequestedOrientation(9);
    while (true)
    {
      MyApplication.a().a(this);
      paramBundle = (WebView)findViewById(2131165433);
      paramBundle.setVerticalScrollbarOverlay(true);
      WebSettings localWebSettings = paramBundle.getSettings();
      localWebSettings.setUseWideViewPort(true);
      localWebSettings.setLoadWithOverviewMode(true);
      localWebSettings.setBuiltInZoomControls(true);
      localWebSettings.setSupportZoom(true);
      if (!(this.a))
        break;
      paramBundle.loadUrl("file:///android_asset/remote_help.htm");
      return;
      setRequestedOrientation(1);
    }
    paramBundle.loadUrl("file:///android_asset/remote_help_en.htm");
  }

  public boolean onCreateOptionsMenu(Menu paramMenu)
  {
    if (this.a)
      paramMenu.add(0, 3, 3, "返回");
    while (true)
    {
      return true;
      paramMenu.add(0, 3, 3, "Return");
    }
  }

  public boolean onOptionsItemSelected(MenuItem paramMenuItem)
  {
    if (paramMenuItem.getItemId() == 3)
      finish();
    return true;
  }
}